<template>
	<view>
		<view class="zhanwei">
			
		</view>
		<view class="top-nav">
			<view class="status_bar" :style="{height:statusBarHeight + 'px'}"></view>
			<view class="nav-header" :style="{height:navigationBarHeight + 'px'}">
				<view class="view_1">
					<text class="ri-arrow-left-s-line icon" @click="back"></text>
					<text class="t1">我的资料</text>
				</view>
			</view>
		</view>


		<view class="con">
			<!-- 头像 -->
			<view class="touxi">
				<image src="https://qincore.cn/xbk/season/18-16-15.jpg" mode=""></image>
			</view>
			<!-- 名字 -->
			<view class="mingzi">
				<text class="text-1">王方华</text>
				<text>13094598205</text>
			</view>
			
			<view class="xiugai">
				<text class="ri-edit-box-line icon"></text>
				<text>修改</text>
			</view>
			
			<view class="xian">
				
			</view>
			
			<!-- 内容 -->
			<view>
				<!-- 手机号-->
				<view class="xiangqing">
					<view class="view_2">
						<text class="text-4">手机</text>
						<text class="text-2">19936023434</text>
					</view>
					<view class="kuang"><text class="text-3">更换手机号</text></view>
				</view>
			</view>
			
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				statusBarHeight: 0,
				navigationBarHeight: 0,
				menuButtonHeight: 0,
				navigationBarAndStatusBarHeight: 0,
			}
		},
		methods: {
			getSystemInfo() {
				this.statusBarHeight = uni.getStorageSync('statusBarHeight');
				this.navigationBarHeight = uni.getStorageSync('navigationBarHeight');
				this.menuButtonHeight = uni.getStorageSync('menuButtonHeight') + 'px';
				this.navigationBarAndStatusBarHeight = uni.getStorageSync('statusBarHeight') + uni.getStorageSync(
					'navigationBarHeight') + 'px';
				console.log(this.navigationBarHeight)
			},
			back(){
				uni.switchTab({
					url:"/pages/My/my"
				})
			}

		},
		mounted() {
			this.getSystemInfo();

		}

	}
</script>

<style lang="less">
	.zhanwei{
		width: 750rpx;
		height: 100rpx;
		background-color: #FFFFFF;
	}
	.status_bar {
		width: 100%;
	}

	.top-nav {
		background: #FFFFFF;
	
	}

	.view_1 {
		display: flex;
		align-items: center;
		width: 350rpx;
		height: 50rpx;
		background: #FFFFFF;
		margin: 0rpx 0 0 40rpx;
		.icon {
			margin-top: -3rpx;
			font-size: 60rpx;
		}

		.t1 {
			letter-spacing: 2rpx;
			margin-bottom: 10rpx;
		}
	}

	page {
		background: #F1F1F1;
	}

    .img_1{
		width: 750rpx;
		height: 500rpx;
		position: relative;
	}
	
	.con{
		width: 690rpx;
		height: 605rpx;
		background: #FFFFFF;
		border-radius: 30rpx;
		position: absolute;
		top: 238rpx;
		right: 28rpx;
	}
	.touxi{
		border: 1px solid #a3c8bb;
		width: 140rpx;
		height: 140rpx;
		border-radius: 100rpx;
		margin: 0 auto;
		margin-top: 50rpx;
		image{
			width: 140rpx;
			height: 140rpx;
			border-radius: 100rpx;
		}
	}
	.mingzi{
		width: 338rpx;
		height: 50rpx;
		margin: 20rpx auto;
		font-weight: 600;
		letter-spacing: 1rpx;
		font-size: 28rpx;
		.text-1{
			padding-right: 20rpx;
		}
	}
	
	.xian{
		width: 650rpx;
		border-top: 1px solid #e2e2e2;
		margin-left: 20rpx;
		margin-top: 40rpx;
	}
	
	.xiangqing{
		display: flex;
		margin-top: 60rpx;
		margin-left: 20rpx;
		height:150rpx;
		width: 650rpx;
		// line-height: 150rpx;
		.text-4{
			font-size: 28rpx;
			font-weight: 600;
			margin: 0 70rpx 0 20rpx;
		}
		.text-2{
			font-size: 26rpx;
			color: #808080;
		}
		.kuang{
			width: 150rpx;
			height: 50rpx;
			border: 1px solid #206129;
			margin-left: 140rpx;
			.text-3{
				font-size: 24rpx;
				color: #206129;
				margin-left: 15rpx;
			}
		}
	}
	.xiugai{
		display: flex;
		justify-content: center;
		.icon{
			color: #0d6b28;
			margin-top: 5rpx;
		}
		text{
			font-size: 28rpx;
			color: #0d6b28;
			padding-left: 10rpx;
		}
	}
</style>
